<template>
    <div class="goodsdesc-container">
        <h3>{{info.title}}</h3>
        <hr>
        <div class="content" v-html="info.content">

        </div>
    </div>
</template>

<script>
    export default {
        data(){
            return{
                info:{title:'【WV PROJECT】韩国官网正品 18春男女字母休闲裤', content:'尺寸/SIZE：<br> M-腰围74  大腿围29  裤裆28  底宽18  裤长98 <br> L-腰围79  大腿围30  裤裆29  底宽19  裤长99<br> XL-腰围80  大腿围31  裤裆30 底宽20  裤长100<br> XXL-腰围83  大腿围32  裤裆31  底宽21 裤长101 <br> <img src="../../src/images/detail01.jpg"> <img src="../../src/images/detail02.jpg"><img src="../../src/images/detail03.jpg"><img src="../../src/images/detail04.jpg"><img src="../../src/images/detail05.jpg">' },
            }
        },
        created(){
            this.getGoodsDesc()
        },
        methods:{
            getGoodsDesc(){
                this.$http.get('api/goods/getinfo/' + this.id ).then(result => {
                    if(result.body.status === 0){
                        this.info = result.body.message;
                    }
                })
            }
        }
    }
</script>

<style lang="scss">
    .goodsdesc-container{
        padding:4px;
        h3{
            font-size:16px;
            color:#E60026;
            text-align:center;
            margin:15px 0;
        }
        .content{
            img{
                width:100%;
            }
        }
    }
</style>